package org.linuxgears.BouncingBall.model;

import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: khilkeol
 * Date: 30 ���� 2010
 * Time: 10:28:32
 * To change this template use File | Settings | File Templates.
 */
public class Ball implements Cloneable {
    
    // Properties
    private Color color;
    private int size;

    public Ball(int size, Color color) {
        setColor(color);
        setSize(size);
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public Color getColor() {
        return color;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public Ball clone() {
        Ball that = null;
        try {
            that = (Ball)super.clone();
        } catch (CloneNotSupportedException ex) {
            ex.printStackTrace();
        }
        return that;
    }
}